/*
 * check_vallarray.cpp
 *
 *  Created on: 01.08.2013
 *      Author: to
 */

#include <iostream>
#include <valarray>
#include "typ_def.h"
//#include <string>
//#include <cassert>
using namespace std;

extern bool mark(int * Array, int ToCheckValue);

int main(void)

{

	//valarray <int>  a[5]);
	int a[5];
	int i,j;
	int warten;
	int check;
	bool mar;
	int n=500;
	double **TestMat = AllocateDynamicArray<double>( n,n);


	for (i=0; i<5; i++)
	{
		a[i]= i;
		cout <<"a[i] ist " <<  a[i] << endl;
	}
	for (i=0;i<n;i++)
	{
		for (j=0;j<n;j++)
		{
			TestMat[i][j]= 1;
			cout << "a"<<i+1<<j+1<<" ist "<<TestMat[i][j] << "\t";
		}

		cout << endl;
	}

	cout << "gibt ne Zahl ein" << endl;
	cin >> check;
	mark(a,check);
/*

	if (mark(a,check)==true)
	{
		cout<< "found" << endl;
	}
*/
	cout<< "warten" << endl;
	cin>> warten;

	return 0;

}
